home *** CD-ROM | disk | FTP | other *** search
/ Hackers Underworld 2: Forbidden Knowledge / Hackers Underworld 2: Forbidden Knowledge.iso / VIRUS / PSTROJAN.DOC < prev    next >
Internet Message Format  |  1990-12-02  |  13KB

  1. From Jeff Shulman
  2.  
  3.    While I have yet to actually see this trojan there does seem to be enough evidence that one actually exists. What it is is either some font, graphic or document that resets the LaserWriter password to something other than zero (the default) causing further print jobs the next time the LW is reset to fail.
  4.  
  5.    Since it really isn't a Mac executed piece of code you cannot use something like "GateKeeper" to prevent it from doing anything. I suppose you can scan for it but you would have to virtually scan every document for it.
  6.  
  7.    The best remedy is to either prevent the password from being changed or just change it back to zero. The following are some messages I have seen that discusses these options. Note, I personally cannot vouch for them and am provided them with no warranty...
  8.  
  9. Jeff
  10. VirusDetective author
  11. ------------------------------------------------------------------
  12.  
  13. Subj:  LW PW Change Prevention  -  90-07-26 19:15:22 EDT
  14. From:  Jeff Shulman
  15.  
  16.    I've attached a copy of the fax Henry Norr forwarded to me to the end of this note.
  17.  
  18.    I don't know how knowledgable Peter Fink is.  He certainly knows more about PostScript than I do, but that's easy, since I don't know any PostScript.
  19.  
  20.    I've also included a copy of a posting by Woody Baker which appeared on comp.virus today.  This posting claims that it is possible to read EEPROM and hence determine the "evil password."  This is important, since it means that it would NOT be necessary to replace the EEPROM as claimed by Fink.
  21.  
  22.    I'm passing all of this on to the rest of you in the hopes that some Masher is a PostScript expert and can make some sense out of all of this.
  23.  
  24. John Norstad
  25.  
  26. --------------------------------------------------------------------------
  27.  
  28. From: Peter Fink, DesktopTo Press, 617-527-1899, FAX 617-332-1533
  29. To: PostScript Imagesetting Community - Manufacturers, Software Vendors, Press
  30. Date: July 22, 1990
  31. Subject: Password-change vandal and protective Password Alert! PostScript code
  32.  
  33. Peter Fink Communications, Inc.
  34. DesktopTo Press
  35. 26 Wetherell Street
  36. Newton MA 02164.
  37.  
  38. Dated July 22, 1990
  39.  
  40. Message:
  41.  
  42.    It appears that some sort of "Trojan Horse" PostScript file has been 
  43. vandalizing PostScript RIPS and printers by resetting their passwords to an 
  44. unknown value. This forces the owner to replace the printer's EEROM.
  45.  
  46.    The problem has occurred in several separate areas of the USA during the past few weeks.  MacPrePress reported the problem two weeks ago.  Friday we 
  47. received a report from New York City of a password change that day.
  48.  
  49.    The nature of the password vandal is not yet known. We have developed simple protective PostScript code, however, and are disseminating it free of charge.  This code will also help find the offending file.
  50.  
  51.    Details and Password Alert! PostScript code follow.  Please feel free to 
  52. distribute this material inside and outside your organization as needed.
  53.  
  54. -----------------------------------------------------------------------------
  55.  
  56. Subj:  LW PW Change Prevention (cont)        90-07-26 19:17:54 EDT
  57. From:  Jeff Shulman
  58.  
  59. Password Alert!
  60.  
  61. serverdict begin 0 exitserver
  62. statusdict /setpassword
  63. {userdict begin /evilpassword exch def pop
  64. (!! PASSWORD ALERT - NOTIFY OWNER!!) - flush
  65. /Helvetica findfont 24 scalefont setfont
  66. 20 50 720 {70 exch moveto
  67. (!! PASSWORD ALERT - NOTIFY OWNER!!)
  68. show} for
  69. showpage
  70. } put
  71.  
  72. [note - I have transcribed this from a fax of a fax, and I do not know any 
  73. PostScript.  It was particularly difficult to distinguish between curly braces 
  74. and parentheses in the copy I received.  So there may well be errors in the 
  75. code displayed above - JLN]
  76.  
  77. Password Alert! is designed to do three things:
  78.  
  79. 1. It protects your RIP by redefining the setpassword operator.  This 
  80. redefinition remains in effect from the time you donwload Password Alert! until the time you reset or reboot the RIP.
  81.  
  82. 2. If a print job tries to reset your password, Password Alert! crashes the 
  83. job (which probably doesn't produce a page anyway), sends an PostScript 
  84. message to the printing application, and screams bloody murder via its alert 
  85. page.
  86.  
  87. 3. Password Alert! also captures the "evil" password you were about to receive 
  88. and stores it harmlessly in userdict so you can reveal it to the world.  (If 
  89. we're lucky, the vandal substitutes the same evil password for zero in all 
  90. cases.  If this is so, knowing the evil password will save future victims 
  91. considerable time and money.  By the way, the evil password might not be an 
  92. integer, despite what it says in the Red Book.)
  93.  
  94.    If an alert page shows up in your shop, you should apprehend the file being 
  95. printed, complete with associated graphics and fonts (likely candidates for 
  96. the vandal code).  You should also immediately use the Print Evilpassword 
  97. utility on the next page to obtain a printout of the evil password - and of 
  98. course you should contact us and the entire PostScript community.
  99.  
  100. Associated with Password Alert! are three brief utility PostScript files:
  101.  
  102. 1. Test - Attempts to change password (to confirm that Password Alert! is 
  103. installed)
  104.  
  105. serverdict begin 0 exitserver
  106. statusdict begin 0 1 setpassword
  107.  
  108.    Test tries to change the password from 0 to 1.  Download this file after 
  109. downloading Password Alert! - you'll probably see the alert message and the 
  110. alert page should print.  If this doesn't happen, Password Alert! hasn't 
  111. downloaded successfully (or has been transcribed incorrectly).  You will 
  112. probably see the standard %%[exitserver... message.  If so, Test has changed 
  113. your password to the number 1.
  114.  
  115. 2. Revert to Zero - Changes the password from 1 back to 0 if needed.
  116.  
  117. serverdict begin 1 exitserver
  118. statusdict begin 1 0 setpassword
  119.  
  120. Revert to Zero changes the password from 1 back to 0.  Download Revert to Zero 
  121. if Test gives you the standard %%[exitserver... message and no alert.
  122.  
  123. 3. Print Evilpassword
  124.  
  125. /Helvetica findfont 12 scalefont setfont
  126. 70 70 moveto (The evil password is: ) show
  127. userdict /evilpassword load 256 string cvs show
  128. showpage
  129.  
  130. [The word "cvs" in the third line above may have been "cvg" or something else 
  131. - it's very unclear on the fax of the fax.  I think it must be "cvs" for the 
  132. PostScript "convert to string" operator - JLN]
  133.  
  134.    If Password Alert! prints an alert page, someone has attempted to change your password.  You may have foiled the vandal - and captured the evil password!  If so, download Print Evilpassword to print a page with the evil password. Do this before rebooting the RIP, because rebooting will remove the captured /evilpasswor that generated the alert page, plus all associated fonts and graphics files!
  135.  
  136.    If you obtain the evil password (and/or a suspected vandal file), contact 
  137. Peter Fink and DesktopTo Press at the address, phone or FAX below.  Password 
  138. Alert! should work on all PostScript implementations, and probably also on 
  139. clones that use exitserver and the PostScript password sheme.  I'd like credit 
  140. for writing this program but claim no commercial rights - this code is free 
  141. and (as always) used at your own risk.  Every service bureau with PostScript 
  142. or PostScript-compatible printers should use this or similar code immediately.
  143.  
  144. Hope this helps you!
  145.  
  146. Peter Fink, DesktopTo Press
  147. 617-527-1899, FAX 617-332-1533
  148. 26 Wetherell Street, Newton, MA 02164
  149.  
  150. -----------------------------------------------------------------------------
  151.  
  152. Subj:  LW PW Reset                           90-07-26 19:20:13 EDT
  153. From:  Jeff Shulman
  154.  
  155. From: quando@ibmpcug.co.uk (Nigel Yeoh)
  156. Subject: resetpassword.ps
  157. Summary: resetting passwords on the laserwriter
  158. Date: 19 Jul 90 23:22:47 GMT
  159. Organization: The IBM PC User Group, UK.
  160.  
  161.    Here is the piece of code that resets the password in a PostScript printer,
  162. which I've obtained.  I'd like to make a point of clarification. Some people might know that Woody Baker offered to make copies of his code available to people who wrote in to him, subject to slightly more onerous conditions than at least one other person on the net thought correct. I then offered to make